package com.ruoyi.project.data.domain;

        import com.ruoyi.framework.web.domain.BaseEntity;

        import java.util.Objects;


public class DrugSalesRecords extends BaseEntity {
    private int drugId;
    private String drugName;
    private double drugPrice;
    private int salesNum;
    private  double salesAllmoney;

    public DrugSalesRecords() {
    }

    public DrugSalesRecords(int drugId, String drugName, double drugPrice, int salesNum, double salesAllmoney) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.drugPrice = drugPrice;
        this.salesNum = salesNum;
        this.salesAllmoney = salesAllmoney;
    }

    public int getDrugId() {
        return drugId;
    }

    public void setDrugId(int drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public double getDrugPrice() {
        return drugPrice;
    }

    public void setDrugPrice(double drugPrice) {
        this.drugPrice = drugPrice;
    }

    public int getSalesNum() {
        return salesNum;
    }

    public void setSalesNum(int salesNum) {
        this.salesNum = salesNum;
    }

    public double getSalesAllmoney() {
        return salesAllmoney;
    }

    public void setSalesAllmoney(double salesAllmoney) {
        this.salesAllmoney = salesAllmoney;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof DrugSalesRecords)) return false;
        DrugSalesRecords that = (DrugSalesRecords) o;
        return drugId == that.drugId &&
                Double.compare(that.drugPrice, drugPrice) == 0 &&
                salesNum == that.salesNum &&
                Double.compare(that.salesAllmoney, salesAllmoney) == 0 &&
                Objects.equals(drugName, that.drugName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(drugId, drugName, drugPrice, salesNum, salesAllmoney);
    }

    @Override
    public String toString() {
        return "DrugSalesRecords{" +
                "drugId=" + drugId +
                ", drugName='" + drugName + '\'' +
                ", drugPrice=" + drugPrice +
                ", salesNum=" + salesNum +
                ", salesAllmoney=" + salesAllmoney +
                '}';
    }
}
